<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org" layout:decorator="layout/default">
<head>
    <meta charset="UTF-8">
</head>
<section layout:fragment="content">
    <div class="layui-fluid">
        <div class="layui-collapse" lay-accordion>
            <div class="layui-colla-item">
                <h2 class="layui-colla-title search-colla-title"><i
                        class="icon iconfont icon-circle"></i><span>查询条件</span></h2>
                <div class="layui-colla-content layui-show">
                    <form id="orderForm" class="layui-form" action="" autocomplete="off">
                        <div class="layui-row layui-col-space30">
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">订单号</label>
                                    <input class="layui-input eyc-uppercase" name="orderNum" type="text">
                                </div>
                            </div>
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">订单状态</label>
                                    <input type="text" name="statusList" id="statusList" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">支付状态</label>
                                    <input type="text" name="payStatusList" id="payStatusList" class="layui-input">
                                </div>
                            </div>
                            <div class="layui-col-sm3">
                                <div class="layui-row layui-col-space15">
                                    <div class="layui-col-sm6">
                                        <label class="layui-form-label">下单日期从</label>
                                        <input type="text" name="createTimeFm" lay-date-input class="layui-input">
                                    </div>
                                    <div class="layui-col-sm6">
                                        <label class="layui-form-label">到</label>
                                        <input type="text" name="createTimeTo" lay-date-input class="layui-input">
                                    </div>
                                </div>
                            </div>
                        </div>
                        <div class="layui-row layui-col-space30">
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">客户</label>
                                    <input class="layui-input eyc-uppercase" name="userId" type="text">
                                </div>
                            </div>
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">车牌</label>
                                    <input class="layui-input eyc-uppercase" name="plateNum" type="text">
                                </div>
                            </div>
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">商家</label>
                                    <input class="layui-input eyc-uppercase" name="company" type="text">
                                </div>
                            </div>
                            <div class="layui-col-sm3">
                                <div class="layui-form-item">
                                    <label class="layui-form-label">&nbsp;</label>
                                    <div class="layui-row">
                                        <button type="button" onclick="search();"
                                                class="layui-btn layui-btn-sm layui-btn-primary layui-border-green">
                                            <i class="icon iconfont icon-search"></i>查询
                                        </button>
                                        <button type="button" onclick="exportExcel();"
                                                class="layui-btn layui-btn-sm layui-btn-primary layui-border-black">
                                            <i class="icon iconfont icon-search"></i>导出Excel
                                        </button>
                                        <button type="button" onclick="clearParams();"
                                                class="layui-btn layui-btn-sm layui-btn-primary layui-border-blue">
                                            <i class="icon iconfont icon-reset"></i><span>重置</span>
                                        </button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </form>
                </div>
            </div>
        </div>

        <div class="layui-row">
            <div class="layui-col-sm3">
                <div class="layui-form-item eyc-margin-top15">
                    <label class="layui-colla-title"><i class="icon iconfont icon-circle"></i><span>订单列表</span></label>
                </div>
            </div>
            <div class="layui-col-sm9">
                <div class="layui-form-item eyc-margin-top15 eyc-text-align-right">
                    <button type="button" data-method="confirmRefund"
                            class="layui-btn layui-btn-sm layui-btn-primary layui-border-orange layui-btn-disabled" disabled="disabled">
                        <i class="icon iconfont icon-edit"></i><span>退款申请确认</span>
                    </button>
                    <button type="button" data-method="verificationOrders"
                            class="layui-btn layui-btn-sm layui-btn-primary layui-border-orange layui-btn-disabled" disabled="disabled">
                        <i class="icon iconfont icon-edit"></i><span>核销订单</span>
                    </button>

                </div>
            </div>
            <div class="layui-col-sm12" id="orderList"></div>
        </div>
    </div>
    <script th:src="@{/layui/layui.js}"></script>
    <script th:src="@{/js/order/orderList.js}"></script>
</section>
</html>